<template>
  <div class="app-container">

    <!-- 表格 -->
    <el-table
      :data="list"
      border
      fit
      highlight-current-row>

      <el-table-column prop="content" label="测试" />

      <el-table-column prop="gmtCreate" label="添加时间"/>


<!--      <el-table-column label="操作" width="200" align="center">-->
<!--        <template slot-scope="scope">-->
<!--          <router-link :to="'/teacher/edit/'+scope.row.id">-->
<!--            <el-button type="primary" size="mini" icon="el-icon-edit">修改</el-button>-->
<!--          </router-link>-->
<!--          <el-button type="success" size="mini" icon="el-icon-share" @click="pushById(scope.row.id)">推送</el-button>-->
<!--          <el-button type="danger" size="mini" icon="el-icon-delete" @click="removeDataById(scope.row.id)">删除</el-button>-->
<!--        </template>-->
<!--      </el-table-column>-->
    </el-table>
    <!-- scope.row.id 获取该行内容的id -->
  </div>
</template>
<script>
import demo from "../../api/demo"
export default{
  data(){
    return{
      list:null,//查询后的接口集合
      input: ''
    }
  },
  created(){
    this.getList()
  },
  methods:{
    getList(){

      demo.list()
        .then(response=>{
          this.list=response.data.msg
        })
    },
  }
}
</script>
